package cn.bgs.controller;

import cn.bgs.service.SyzService;
import cn.bgs.utils.R;
import cn.bgs.vo.Operationvo;
import cn.bgs.vo.Pagevo;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpSession;

@RestController
@RequestMapping("/controller")
public class SyzController {
    @Autowired
    SyzService syzService;

    //查询操作日志+分页
    @PostMapping("/pageinfo")
    public PageInfo<Operationvo> selectQueryAll(@RequestBody Pagevo limit){
        PageInfo<Operationvo> page=syzService.page1(limit);
        return page;
    }


}
